package org.example.supermarketms.model;

import lombok.Data;

@Data
public class OrderData {
    private String rowkey;
    private String goodsName;      // 商品名称
    private String category;       // 商品类别
    private double price;          // 商品单价
    private int quantity;          // 购买数量
    private double totalAmount;    // 总金额
    private double discount;       // 折扣金额
    private double actualAmount;   // 实际金额
    private String paymentMethod;  // 支付方式
    private String orderTime;      // 下单时间

    //Lombok不起效果，自己写getter和setter
//    public String getGoodsName() { return goodsName; }
//    public String getCategory() { return category; }
//    public double getPrice() { return price; }
//    public int getQuantity() { return quantity; }
//    public double getTotalAmount() { return totalAmount; }
//    public double getDiscount() { return discount; }
//    public double getActualAmount() { return actualAmount; }
//    public String getPaymentMethod() { return paymentMethod; }
//    public String getOrderTime() { return orderTime; }
//
//    public void setRowkey(String rowkey) { this.rowkey = rowkey; }
//    public void setGoodsName(String goodsName) { this.goodsName = goodsName; }
//    public void setCategory(String category) { this.category = category; }
//    public void setPrice(double price) { this.price = price; }
//    public void setQuantity(int quantity) { this.quantity = quantity; }
//    public void setTotalAmount(double totalAmount) { this.totalAmount = totalAmount; }
//    public void setDiscount(double discount) { this.discount = discount; }
//    public void setActualAmount(double actualAmount) { this.actualAmount = actualAmount; }
//    public void setPaymentMethod(String paymentMethod) { this.paymentMethod = paymentMethod; }
//    public void setOrderTime(String orderTime) { this.orderTime = orderTime; }
}